//--------------------------------------------------------------------
// !COMMON UI FUNCTIONS
//--------------------------------------------------------------------


head.ready(function(){

	/*
		Notification fades
	*/
	$('.fade-me').delay(5000).slideUp(450);
	
	/*
	Check all functionality
	*/
	$(".check-all").click(function(){
		$("table input[type=checkbox]").attr('checked', $(this).is(':checked'));
	});
	
	/*
		AJAX Setup
	*/
	$.ajaxSetup({cache: false});
	
	$('#message').ajaxStart(function(){
		$(this).html('<div class="notification attention"><div>Loading...</div></div>');
		
	});
	
	$('#message').ajaxStop(function(){
		$(this).html('');
	});
});


